﻿using UnityEngine;
using System.Collections;

public class DebugHandler : MonoBehaviour
{
    /// <summary>
    /// 单例模式
    /// </summary>
    public static DebugHandler _instance;

    private void Awake()
    {
        _instance = this;
    }

    /// <summary>
    /// 控制台输出
    /// </summary>
    /// <param name="message"></param>
    public void DebugLog(string message)
    {
        Debug.Log(message);
    }

    /// <summary>
    /// 控制台报错
    /// </summary>
    /// <param name="message"></param>
    public void DebugError(string message)
    {
        Debug.LogError(message);
    }

    /// <summary>
    /// 控制台警告
    /// </summary>
    public void DebugWarning(string message)
    {
        Debug.LogWarning(message);
    }
}
